package com.lxk.index.banner.domain.vo;

import com.lxk.index.banner.domain.IndexBanner;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 首页轮播图管理视图对象 index_banner
 *
 * @author soda
 * @date 2024-07-24
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = IndexBanner.class)
public class IndexBannerVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ExcelProperty(value = "主键id", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "id")
    private Long id;

    /**
     * 轮播图地址
     */
    @ExcelProperty(value = "轮播图地址")
    private String url;

    /**
     * 视频封面图
     */
    @ExcelProperty(value = "视频封面图")
    private String poster;

    /**
     * 跳转地址
     */
    @ExcelProperty(value = "跳转地址")
    private String valueId;

    /**
     * 轮播图跳转类型
     */
    @ExcelProperty(value = "轮播图跳转类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "banner_jumptype")
    private String jumpType;

    /**
     * 标题
     */
    @ExcelProperty(value = "标题")
    private String title;

    /**
     * 状态：0开启1关闭
     */
    @ExcelProperty(value = "状态：0开启1关闭", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_common_status")
    private String status;

    /**
     * 排序状态
     */
    @ExcelProperty(value = "排序状态")
    private Integer sortStatus;

    /**
     * 轮播图类型
     */
    @ExcelProperty(value = "轮播图类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "banner_type")
    private String type;


}
